package com.ruoyi.electronicFence.service.impl;

import com.ruoyi.common.config.DbInterfaceConfig;
import com.ruoyi.electronicFence.domain.vo.ReqVo;
import com.ruoyi.electronicFence.utils.HttpUtil;
import com.ruoyi.electronicFence.domain.RecordReadingLocation;
import com.ruoyi.electronicFence.service.RecordReadingLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【J_KY_S_DWDQJL(记录读取飞机，船舶动态信息数据位置表)】的数据库操作Service实现
* @createDate 2025-02-14 15:53:42
*/
@Service
public class RecordReadingLocationServiceImpl
    implements RecordReadingLocationService{

    @Autowired
    DbInterfaceConfig dbInterfaceConfig;

    @Override
    public RecordReadingLocation getOneBySql() {
        StringBuilder sb = new StringBuilder("select id, rddqwz, wldqwz from J_KY_S_DWDQJL");
        RecordReadingLocation bean = (RecordReadingLocation) HttpUtil.getBean(dbInterfaceConfig, new ReqVo(sb.toString()), RecordReadingLocation.class);
        return bean;
    }
}




